import urllib.request

# 下载网页
url_page = 'http://www.baidu.com'
# url 下载的路径 filename 文件名字
urllib.request.urlretrieve(url_page,'baidu.html')
# 下载图片

url_img = 'https://ts1.cn.mm.bing.net/th/id/R-C.3471263bf99bcdbc0dc4b7c9a52e651f?rik=YlDtLdi8ZpLNBg&riu=http%3a%2f%2fi.52desktop.cn%3a81%2fupimg%2fallimg%2f20180425%2f2018425801248477807.jpg&ehk=bpVlFm%2bwywUoAQDyDI7x9VGw7H5vJUKwt3NtupHvqSo%3d&risl=&pid=ImgRaw&r=0'
urllib.request.urlretrieve(url_img,'bizhi.jpg')
# 下载资源

url_video = 'https://edge.ivideo.sina.com.cn/36048250502.mp4?KID=sina,viask&Expires=1698768000&ssig=58FIGy1641&reqid='

urllib.request.urlretrieve(url_video,'bz.mp4')
